// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Diagnostics.CodeAnalysis;
using Mono.Linker.Tests.Cases.Expectations.Assertions;

// A module level suppression with a null scope will be put on the current module.
[module: UnconditionalSuppressMessage("Test", "IL2026", Scope = null, Target = null)]

namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression
{
    [SkipKeptItemsValidation]
    [LogDoesNotContain("IL2026")]
    class ModuleSuppressionWithNullScopeNullTarget
    {
        static void Main()
        {
            TriggerWarning();
        }

        [RequiresUnreferencedCode("TriggerWarning")]
        public static Type TriggerWarning()
        {
            return typeof(ModuleSuppressionWithNullScopeNullTarget);
        }
    }
}
